<?php /* Smarty version 2.6.18, created on 2017-01-03 16:37:23
         compiled from ware/type.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
          <section class="col-lg-2 connectedSortable" style=" padding-right:0px;">
          <div class="box box-solid">
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "ware/left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
         </div>
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">管理分类</h3>
              <a href="index.php?a=ware.typeadd" class="btn btn-primary btn-sm" style="float:right;">自建分类</a>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div class="table-responsive mailbox-messages">
                <table class="table table-bordered table-striped" id="mytable">
                <thead>
                  <tr>
                     <td>分类名称</td>
                     <td>添加时间</td>
                     <td>操作</td>
                  </tr>
				 </thead>
				 <?php $_from = $this->_tpl_vars['type_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
				 <tr>
                     <td><?php echo $this->_tpl_vars['value']['type_name']; ?>
</td>
                     <td><?php echo $this->_tpl_vars['value']['create_time']; ?>
</td>
                     <td width="150">
                     	  <a href="index.php?a=ware.typeupdate&type_id=<?php echo $this->_tpl_vars['value']['type_id']; ?>
" class="btn btn-warning btn-xs">修 改</a>
                          <a onclick="if(confirm('警告！确认删除信息?')==false)return false;" href="index.php?a=ware.typedel&type_id=<?php echo $this->_tpl_vars['value']['type_id']; ?>
 " class="btn btn-danger btn-xs">删 除</a>
                     </td>
                  </tr>
				<?php endforeach; endif; unset($_from); ?>  
                </table>
                <!-- /.table -->
              </div>
			  <?php echo $this->_tpl_vars['page']; ?>
 
              <!-- /.mail-box-messages -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer no-padding">
            </div>
          </div>
		  
          <!-- /. box -->
        </section>   
		
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>